package com.chrilwe.pigpig.auth.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.chrilwe.pigpig.core.model.auth.ValidateCode;
import cn.chrilwe.pigpig.core.model.auth.ValidateCodeCategory;

public interface ValidateCodeMapper {
	
	public void insertValidateCodeCat(ValidateCodeCategory validateCodeCat);
	
	public void insertValidateCode(ValidateCode validateCode);
	
	public ValidateCodeCategory selectValidateCodeCatByRand(int status);
	
	public List<ValidateCode> selectValidateCodeByCatIdAndRand(@Param("status")int status,@Param("catId")int catId);
	
	public void updateValidateCodeCat(ValidateCodeCategory validateCodeCat);
	
	public void updateValidateCode(ValidateCode validateCode);
}
